package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by sk on 2018/3/21.
 */

public class WareSeatBean {


    /**
     * returnCode : 1
     * returnMsg :
     * resultList : [{"id":"402880eb60df5b270160df5e09880002","code":"TSE32","companyId":"402880eb60d8b87a0160d8bb2c450001","pid":"402880eb60df5b270160df5d9c9a0001","type":2,"name":"测试库位1","states":1,"note":null,"province":"19","city":"292","district":"3065","address":"33322332","phone":"322332"},{"id":"402880eb60df63dc0160df65e8f70001","code":"TEST32","companyId":"402880eb60d8b87a0160d8bb2c450001","pid":"402880eb60df5b270160df5d9c9a0001","type":2,"name":"问问问问","states":1,"note":null,"province":"2","city":"40","district":"56","address":"问问饿","phone":"13002222222"}]
     * returnObject : null
     */

    private int returnCode;
    private String returnMsg;
    private Object returnObject;
    private List<ResultListBean> resultList;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public Object getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(Object returnObject) {
        this.returnObject = returnObject;
    }

    public List<ResultListBean> getResultList() {
        return resultList;
    }

    public void setResultList(List<ResultListBean> resultList) {
        this.resultList = resultList;
    }

    public static class ResultListBean implements Parcelable {
        /**
         * id : 402880eb60df5b270160df5e09880002
         * code : TSE32
         * companyId : 402880eb60d8b87a0160d8bb2c450001
         * pid : 402880eb60df5b270160df5d9c9a0001
         * type : 2
         * name : 测试库位1
         * states : 1
         * note : null
         * province : 19
         * city : 292
         * district : 3065
         * address : 33322332
         * phone : 322332
         */

        private String id;
        private String code;
        private String companyId;
        private String pid;
        private int type;
        private String name;
        private int states;
        private String note;
        private String province;
        private String city;
        private String district;
        private String address;
        private String phone;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getCompanyId() {
            return companyId;
        }

        public void setCompanyId(String companyId) {
            this.companyId = companyId;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStates() {
            return states;
        }

        public void setStates(int states) {
            this.states = states;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getDistrict() {
            return district;
        }

        public void setDistrict(String district) {
            this.district = district;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.code);
            dest.writeString(this.companyId);
            dest.writeString(this.pid);
            dest.writeInt(this.type);
            dest.writeString(this.name);
            dest.writeInt(this.states);
            dest.writeString(this.note);
            dest.writeString(this.province);
            dest.writeString(this.city);
            dest.writeString(this.district);
            dest.writeString(this.address);
            dest.writeString(this.phone);
        }

        public ResultListBean() {
        }

        protected ResultListBean(Parcel in) {
            this.id = in.readString();
            this.code = in.readString();
            this.companyId = in.readString();
            this.pid = in.readString();
            this.type = in.readInt();
            this.name = in.readString();
            this.states = in.readInt();
            this.note = in.readString();
            this.province = in.readString();
            this.city = in.readString();
            this.district = in.readString();
            this.address = in.readString();
            this.phone = in.readString();
        }

        public static final Parcelable.Creator<ResultListBean> CREATOR = new Parcelable.Creator<ResultListBean>() {
            @Override
            public ResultListBean createFromParcel(Parcel source) {
                return new ResultListBean(source);
            }

            @Override
            public ResultListBean[] newArray(int size) {
                return new ResultListBean[size];
            }
        };
    }
}
